package com.itheima.exerciseTest.test20_29;

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Test24 {
    public static void main(String[] args) throws ParseException {
        String str = "2018-03-04";
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
        SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy年MM月dd日");
        String format = sdf2.format(sdf1.parse(str));
        System.out.println(format);
    }
}
